import request from '@/utils/request'

// 查询打卡核销列表
export function couponList(data) {
  return request({
    url: '/shenye/customer/coupon/list',
    method: 'post',
    data
  })
}
// 查询打卡核销统计
export function couponCount(data) {
  return request({
    url: '/shenye/customer/coupon/count',
    method: 'post',
    data
  })
}
// 查询核销店铺下拉框
export function couponShopList(query) {
  return request({
    url: '/shenye/customer/coupon/shop/list',
    method: 'get',
    params: query
  })
}
// 退款信息查询
export function couponRefund(params) {
  return request({
    url: '/shenye/customer/coupon/refund',
    method: 'get',
    params
  })
}
// 确认退款
export function couponConfirmRefund(params) {
  return request({
    url: '/shenye/customer/coupon/confirm/refund',
    method: 'post',
    params
  })
}